﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace temportal
{
    class Rand
    {
        public String randomName()
        {
            String[] names = new String[] {"Gordon Freeman","Alex Vance","Chloe","GLaDOS","Gaben","Tidus","Master Chief"};
            int index = names.Length;

            if (index == 0)
               return names[index];
            else   
            {
               Random random = new Random();
               int randomIndex = random.Next(0, index);

               return names[randomIndex];
            }
        }
    }
}
